import requests
url = 'https://twitter.com'

response = requests.get(url, timeout=3)